Current Location: Home> Function Categories> log10

log10

Logarithm with base 10
Name:log10
Category:math
Programming Language:php
One-line Description:Logarithm with base 10.

Definition and usage

log10() has a logarithm with base 10.

Example

In this example, we apply the log10() function to different numbers:

 <?php
echo ( log10 ( 2.7183 ) ) ;
echo ( log10 ( 2 ) ) ;
echo ( log10 ( 1 ) ) ;
echo ( log10 ( 0 ) ) ;
echo ( log10 ( - 1 ) ) ;
?>

Try it yourself

grammar

 log10 ( x )
parameter describe
x Required. A number.

illustrate

Returns the logarithm of parameter x with base 10.

Similar Functions
  • Further method to sort ceil

    ceil

    Furthermethodtosort
  • Antihyperbolic tangent atanh

    atanh

    Antihyperbolictangen
  • Sow the random number generator seeds srand

    srand

    Sowtherandomnumberge
  • Tilt tan

    tan

    Tilt
  • Returns the remainder of the floating point number of division fmod

    fmod

    Returnstheremaindero
  • Logarithm with base 10 log10

    log10

    Logarithmwithbase10
  • Find the maximum value max

    max

    Findthemaximumvalue
  • Natural logarithm log

    log

    Naturallogarithm
Popular Articles